package cn.shengongying.api;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableAsync
@EnableWebMvc
@EnableOpenApi
@EnableTransactionManagement
@EnableDubbo(scanBasePackages = "cn.shengongying.application")
@SpringBootApplication(scanBasePackages = "cn.shengongying")
@MapperScan(annotationClass = Repository.class,basePackages = "cn.shengongying.dao")
public class SgyApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(SgyApiApplication.class, args);
    }

}
